<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/jquery.confirm.css"/>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
		<form id="formsearch" >
			<div class="am-u-md-6 am-cf">
				<div class="am-fl" style="padding:10px;">
		          <div class="am-input-group am-input-group-sm">
		          		<span class="am-input-group-label" style="background-color: #fff;border: 0px;">时间</span>
		          		<input value="{$now|date_format:'Y-m-d'}" data-am-datepicker style="width:180px;" type="text" id="now" name="now" class="field am-form-field hy-js-search">
		                <span class="am-input-group-btn" style=" height: 45px;padding-left: 50px;">
		                  <button class="am-btn am-btn-default bin-select-searchbtn" type="button">搜索</button>
		                </span>
		          </div>
		        </div>
			</div>
		</form>
      
	        <div class="am-form">
	          <table class="am-table am-table-striped am-table-hover table-main">
	            <thead>
	              <tr>
					<th width="25%" class="table-type">节目系列名称</th>
					<th width="25%" class="table-type">节目系列第一个节目的开始时间</th>
					<th width="25%" class="table-type">节目系列下节目数量</th>
					<th width="10%" class="table-type">节目系列ID</th>
					<th width="15%" class="table-author">操作</th>
					
	              </tr>
	          </thead>
	          <tbody id="data">
	          	  
	          </tbody>
	        </table>
	
	    </div>
	</div>
   {include file='../Common/hy_footer.html'}
   <script type="text/javascript" src="{$_C.hy_path}js/Map.js"></script>
   <script type="text/javascript" src="{$_C.hy_path}js/bin.select.js"></script>
   <script src="{$_C.hy_path}js/jquery.confirm.js"></script>
   <script type="text/javascript">
   	$(function(){
	   	$('#now').datepicker({
			          dateFormat:'yy-mm-dd'//日期格式
	          });
	})
	$('.bin-select-searchbtn').click(function(){
		var url = window.location.href;
           url = url.substring(0,url.indexOf("?"));
		   url+="?g=admin&m=tv&a=series";
//		   url+="?g=admin&m=tv&a=record";
		var json = uriJson(bulidFilterParams($("#formsearch")));
		if(json!=""&&json!=null&&json!=undefined){
//			window.location.href=url+"&"+json;
			$.get(url+"&"+json,function(res){
				$("#data").html(res);
				showMsg("刷新成功",0);
			},'text')
		}
	});
	
	function addTvOrder(reserveId)
	{
		var url = "index.php?g=admin&m=tv&a=addTvOrder";
		var data = {
			reserveId:reserveId
		}
		$.post(url,data,function(res){
			if(res.errcode==0){
				showMsg("预约成功",0);
			}else{
				showMsg(res.errmsg,1);
			}
		},"json")
	}
	
		
   </script>
	</body>
</html>
